package com.gec.system.service;

import com.gec.system.custom.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @author:啊薰
 * @create:2024-05-25 15:36
 */
public interface SysUserDetailsService {
     /**
     * 根据用户名获取用户对象（获取不到直接抛异常）
     */
    UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;
}
